const secondHand = document.querySelector('.second-hand')
const minHand = document.querySelector('.min-hand')
const hourHand = document.querySelector('.hour-hand')

function setData() {
    const now = new Date();
    const secondes = now.getSeconds()
    const secodeesDegress = (secondes / 60) * 360 + 90;
    secondHand.style.transform = `rotate(${secodeesDegress}deg)`


    const mins = now.getMinutes();
    const minsDegress = (mins / 60) * 360 + 90;
    minHand.style.transform = `rotate(${minsDegress}deg)`

    const hour = now.getHours();
    const hourDegress = (hour / 12) * 360 + 90;
    hourHand.style.transform = `rotate(${hourDegress}deg)`

}

setInterval(setData, 1000)
